home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 22 / Amiga Format AFCD22 (Jan 1998, Issue 106).iso / -screenplay- / utilities / hd_installers / alfredchicken / install-alfredchicken < prev    next >
Text File  |  1997-11-05  |  1KB  |  66 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3.  
  4.  
  5. ;----------------------------
  6.  
  7. ;try to figure out a place where the user usually installs his games
  8. (if (exists "Games:" (noreq) )
  9.     (set @default-dest "Games:")
  10.     (if (exists "SYS:Games" (noreq) )
  11.         (set @default-dest "SYS:Games")
  12.         (if (exists "Work:Games" (noreq) )
  13.             (set @default-dest "Work:Games")
  14.             (if (exists "JEUX:" (noreq) )
  15.                (set @default-dest "JEUX:")
  16.                (set @default-dest "SYS:")
  17.             )
  18.         )
  19.     )
  20. )
  21.  
  22. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch)")
  23.  
  24.  
  25. (set @default-dest
  26. (askdir
  27.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  28.     (help @askdir-help)
  29.     (default @default-dest)
  30.     (disk)
  31. )
  32. )
  33.  
  34. (set #dest (tackon @default-dest @app-name))
  35.  
  36.  
  37. (makedir #dest
  38.     (help @makedir-help)
  39.     (infos)
  40. )
  41.  
  42. ;----------------------------
  43. (copyfiles
  44.     (help @copyfiles-help)
  45.     (source "AlfredChickenHD")
  46.     (dest #dest)
  47.     (infos)
  48. )
  49.  
  50. (copyfiles
  51.     (help @copyfiles-help)
  52.     (source "alfredhd.readme")
  53.     (dest #dest)
  54.     (infos)
  55. )
  56.  
  57. (message ("\nInsert %s into drive %s !" @app-name #CI_drive))
  58.     (if
  59.         (= 0 (run ("copy df%ld: to \"%s\" all " #CI_unit #dest )))
  60.         ("")
  61.         (abort "\"\" must be in your PATH !")
  62.     )
  63.  
  64. (exit)
  65.  
  66.